local string_plit =  function (szFullString, szSeparator) ##字符串分隔
	local nFindStartIndex = 1
	local nSplitIndex = 1
	local nSplitArray = {}
	while true do
	   local nFindLastIndex = string.find(szFullString, szSeparator, nFindStartIndex)
	   if not nFindLastIndex then
	    nSplitArray[nSplitIndex] = string.sub(szFullString, nFindStartIndex, string.len(szFullString))
	    break
	   end
	   nSplitArray[nSplitIndex] = string.sub(szFullString, nFindStartIndex, nFindLastIndex - 1)
	   nFindStartIndex = nFindLastIndex + string.len(szSeparator)
	   nSplitIndex = nSplitIndex + 1
	end
	return nSplitArray
end

local get_by_keys = function (keys)
  local result = {}
  local keys_arr = string_plit(keys, ',') ####按照逗号分隔字符串
  for i, v in ipairs(keys_arr) do ###循环获取每个key对应的值
  	local value = redis.call('get', v)
  	table.insert(result, value)###将值添加到数组中
  end
  return result
end

local cache_keys = KEYS[1] ####获取传递的第一个参数， 下标从1开始
return get_by_keys(cache_keys)
